<?php
/*
 * 
 * 
1.	文件开头 Options +FollowSymLinks 有时候是需要的，某些服务器没有开启, 所有会出现权限不够


2.  简单的将.html转换成.php

	Options +FollowSymLinks
	RewriteEngine on
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule ^(.*)\.html$ $1\.php [QSA,L]
	RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
	
	
	
	
	
	

nginx
	
rewrite ^/huipei([/]*)$ /index.php?m=shuangtui&a=index last;
rewrite ^/searchs([/]*)$ /index.php?m=searchsV3&a=index last;

rewrite ^/baoyang([/]*)$ /services/baoyang/cars;
rewrite ^/baoyang/([0-9]+).html$ /baoyang/carsinfo?sid=$1;
rewrite ^/baoyang/([0-9]+)-([0-9]+).html$ /baoyang/cartype?sid=$1&cid=$2;

rewrite ^/services([/]*)$ /index.php?m=productsV5&a=index;
rewrite ^/services/page/([0-9]+)([/]*)$ /index.php?m=productsV5&a=index&page=$1;
#rewrite ^/services/([x0-9-]+)/1.html([/]*)$ /index.php?m=productsV5&a=index&param=$1;
#rewrite ^/services([x0-9-]+)([/]*)$ /services/$1/1.html permanent;
rewrite ^/services/([x0-9-]+)/1.html([\/]*)$ index.php?m=services&c=goods&a=init&param=$1;
rewrite ^/services([x0-9-]+)([/]*)$ /services/$1/1.html permanent;
#rewrite ^/services/([x0-9-]+)/([0-9]+).html([/]*)$ /index.php?m=productsV5&a=index&param=$1&page=$2;
rewrite ^/services/([x0-9-]+)/([0-9]+).html([/]*)$ /index.php?m=services&c=goods&a=init&param=$1&page=$2;
rewrite ^/services([x0-9-]+)/page/([0-9]+)([/]*)$ /services/$1/$2.html;
rewrite ^/maplink([0-9]+)-([0-9]+)-([0-9]+)([/]*)$ /index.php?m=content_1&a=map_link&area=$1&trading=$2&linking=$3;
rewrite ^/maplink([0-9]+)-([0-9]+)-([0-9]+)/page/([0-9]+)([/]*)$ /index.php?m=content_1&a=map_link&area=$1&trading=$2&linking=$3&page=$4;